if versioncmp($::puppetversion,'3.6.0')>=0 {
  Package { allow_virtual=>true, }
}

node 'platform.ksyun.foxitcloud.com' {
  include smx_os
  include smx_platform
  include smx_mount
  class { 'smx_node_type':
    type => 'platform',
  }
}

node 'aws209.demo.foxitcloud.com' {
  include smx_os
  include smx_web
  include smx_php
  include smx_base
  include smx_mongodb
  include smx_tomcat
  include smx_mysql
  include smx_elasticsearch
  include smx_platform
  include smx_worker
  class { 'smx_node_type':
  }
}

node '151.demo-hf.foxitcloud.com' {
  include smx_os
  include smx_tomcat
  include smx_download
  include smx_mount
  include smx_nginx
  include smx_php
  include smx_base

  include smx_node_type
  include smx_tools

  include smx_vagrant
  include smx_java
  include smx_mongodb
  include smx_redis
  include smx_mysql
  include smx_selenium
  include smx_platform
  include smx_worker

  include smx_cas
  include smx_nodejs
  include smx_restheart
}

node 'testserver.itcws.foxitcloud.com' {
  include smx_os
  include smx_download
  include smx_mount
  include smx_nginx
  include smx_php
  include smx_base

  include smx_node_type
  include smx_tools

  include smx_mongodb
  include smx_mysql
  include smx_nodejs
}

node 'mongoplatform.mongoplatform.foxitcloud.com' {
  include smx_os
  include smx_download
  include smx_node_type
  include smx_tools
  include smx_java
  include smx_mongodb
  include smx_platform
}

node 'ops47.demo.foxitcloud.com' inherits '151.demo-hf.foxitcloud.com' {
}

node 'ops48.demo2.foxitcloud.com' inherits '151.demo-hf.foxitcloud.com' {
}

node 'dev.demo-cn.foxitcloud.com' inherits '151.demo-hf.foxitcloud.com' {
}

node 'cndemo.cndemo.foxitcloud.com' inherits '151.demo-hf.foxitcloud.com' {
}

node /^fz\d+\.fz\d+\.foxitcloud\.com/ inherits '151.demo-hf.foxitcloud.com' {
}

node 'ip-10-1-103-110.foxitcloud-dns' {
  include smx_os
  include smx_nginx
  include smx_php
}

node 'ip-10-1-103-145.foxitcloud-dns' inherits 'ip-10-1-103-110.foxitcloud-dns' {
}